@extends('index')

@section('content')
<h3>品牌管理</h3>
      <div id="CompanysTable"></div>
@stop

@section("script")
<script type="text/javascript">
	$(function(){
          $(".menu .jichu-item").toggleClass("hidden");
  $("#pinpai").addClass("active");
  $('#CompanysTable').jtable({
    title: '品牌管理',
    actions: {
        listAction: '/getcompanyslist',
        createAction: '/addcompany',
        updateAction: '/editecompany',
        deleteAction: '/deletecompany'
    },
    fields: {
        id: {
            key: true,
            list: false
        },
        厂商名: {
            title: '厂商名',
        },
        地址: {
            title: '地址',

        },
    }
  });
  $('#CompanysTable').jtable('load');

});
</script>
@stop